﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VIFON.DAL;

namespace VIFON.BLL
{
    class BLBillDetails
    {
       static DABillDetail daBillDetail = new DABillDetail();

        /// <summary>
        /// Delete Customer in Bill and Bill Detail by customer id
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        internal List<BillDetail> GetBillDetailList()
        {
            return daBillDetail.GetBillDetailList();
        }
        internal List<BillDetail> GetBillDetailListById(int BillId)
        {
            return daBillDetail.GetBillDetailListByCondition(BillId);
        }
         internal bool Insert(BillDetail boBillDetails)
        {
            return daBillDetail.Insert(boBillDetails);
        }
         internal bool Update(BillDetail boBillDetails)
        {
            return daBillDetail.Update(boBillDetails);
        }
         internal bool Delete(int id)
         {
             return daBillDetail.Delete(id);
         }
    }
}
